<script language="JavaScript" type="text/javascript">
	function linkHome() { document.location.href = "<?php echo $this->linkTo(null,null,null); ?>";}	
	function linkSignIn() { document.location.href = "<?php echo $this->linkTo('login','index'); ?>";}
	function linkSignUp() { document.location.href = "<?php echo $this->linkTo('signup','index'); ?>";}
	function linkDashboard() { document.location.href = "<?php echo $this->linkTo('index','member'); ?>";}
	function linkRequest() { document.location.href = "<?php echo $this->linkTo('request','donation'); ?>";}
	function linkDonate() { document.location.href = "<?php echo $this->linkTo('donate','donation'); ?>";}
	function linkVote() { document.location.href = "<?php echo $this->linkTo('vote','election'); ?>";}
	function linkElections() { document.location.href = "<?php echo $this->linkTo('index','election'); ?>";}
	function linkGrant() { document.location.href = "<?php echo $this->linkTo('grant','member'); ?>";}
	function linkMyAccount() { document.location.href = "<?php echo $this->linkTo('myaccount','member'); ?>";}	
	function linkLogout() { document.location.href = "<?php echo $this->linkTo('logout','index'); ?>";}	
</script>
<div dojoType="dijit.Menu" id="navMenu">
	<div dojoType="dijit.MenuItem" onClick="linkHome();">Home</div>
<?php if (!$this->userInfo('userId')): ?>
	<div dojoType="dijit.MenuItem" onClick="linkSignIn();">Sign In</div>
	<div dojoType="dijit.MenuItem" onClick="linkSignUp();">Sign Up Now</div>		
<?php endif; ?>
</div>
<?php if ($this->userInfo('userId')): ?>
<br />
<div dojoType="dijit.Menu" id="userMenu">
	<div dojoType="dijit.MenuItem" onClick="linkDashboard();">Dashboard</div>
	<div dojoType="dijit.MenuItem" onClick="linkRequest();">Request Donation</div>
	<div dojoType="dijit.MenuItem" onClick="linkDonate();">Donate</div>
	<div dojoType="dijit.MenuItem" onClick="linkVote();">Vote</div>
	<div dojoType="dijit.MenuItem" onClick="linkElections();">Running Elections</div>
	<div dojoType="dijit.MenuItem" onClick="linkGrant();">Grant Sponsorship</div>
	<div dojoType="dijit.MenuItem" onClick="linkMyAccount();">My Account</div>
	<div dojoType="dijit.MenuItem" onClick="linkLogout();">Logout</div>
</div>
<?php endif; ?>